<?php
class Zend_View_Helper_MailList {
	protected $_view;
	function setView($view) { 
		$this->_view = $view; 
	} 
	
	/*
	 * type - "amazonList", "myBooks"
	 * */
	function mailList($messages, $user) {
		
	   $this->_view->messageThreads = $messages;
	   $this->_view->users = $user;
       $out = $this->_view->render('/message/MailList.phtml');
       return $out;
	}
}
?>